#include <iostream>
using std::cout;
using std::endl;

#include "Date.cpp"

int main()
{
   Date d1;
   Date d2( 12, 27, 1992 );
   Date d3( 0, 99, 8045 );

   cout << "d1= " << d1 << "\nd2= " << d2 << "\nd3= " << d3;
   cout << "\n\nd2 += 7 is " << ( d2 += 7 );

   d3.setDate( 2, 28, 1992 );
   cout << "\n\n  d3= " << d3;
   cout << "\n++d3= " << ++d3;

   Date d4( 7, 13, 2002 );

   cout << "\n\nprefix increment operator:\n"
      << "  d4= " << d4 << endl;
   cout << "++d4= " << ++d4 << endl;
   cout << "  d4= " << d4;

   cout << "\n\npostfix increment operator:\n"
      << "  d4= " << d4 << endl;
   cout << "d4++= " << d4++ << endl;
   cout << "  d4= " << d4 << endl;
   return 0;
}
